export default async (ctx, type) => {
  const { roleid } = ctx.info;
  let oprlimitsArr = await ctx.db.querys(`select oprlimits from role where roleid='${roleid}'`)
  let resArr = oprlimitsArr[0].oprlimits.split(',')
  return resArr.includes(type)
}